<?php

namespace service\rabbitmq;

use app\models\rabbitmq\Mq;
use service\BaseService;

class MqService extends BaseService
{

    /**
     * @param $exchangeName
     * @param $routeKey
     * @param $msg
     * @return bool
     */
    public function publish($exchangeName, $routeKey, $msg)
    {
        return Mq::getInstance()->publish($exchangeName, $routeKey, $msg);
    }
}
